import base from './base'

export default class News extends base {
    /**
       * 获取角色列表
       */
    static async getRoleList(options) {
        const url = `${this.baseUrl}/com/user/getRoleList`
        return this.get(url, options)
    }
    /**
   * 后台新增用户
   */
    static async addUser(options) {
        const url = `${this.baseUrl}/adm/user/create`
        return this.post(url, options)
    }
    /**
    * 获取单个用户信息
    */
    static async getUserIn(options) {
        const url = `${this.baseUrl}/adm/user/getSingleuserInfo`
        return this.post(url, options)
    }
    /**
     * 获取用户列表
     */
    static async getUserList(options) {
        const url = `${this.baseUrl}/adm/user/getUserListByPage`
        return this.post(url, options)
    }
    /**
        * 后台重置用户密码
        */
    static async userResetpwd(options) {
        const url = `${this.baseUrl}/adm/user/resetpwd`
        return this.post(url, options)
    }
    /**
           * 后台重置用户密码
           */
    static async userModify(options) {
        const url = `${this.baseUrl}/adm/user/modify`
        return this.post(url, options)
    }

    /**
            * 修改用户状态
            */
    static async userStatus(options) {
        const url = `${this.baseUrl}/adm/user/changeStatus`
        return this.post(url, options)
    }
    /**
            * 获取用户提交认证审核列表
            */
    static async getUserAuthList(options) {
        const url = `${this.baseUrl}/adm/user/getUserAuthList`
        return this.post(url, options)
    }
    /**
           * 处理审核
           */
    static async manageUserAuthStatus(options) {
        const url = `${this.baseUrl}/adm/user/manageUserAuthStatus`
        return this.post(url, options)
    }
    /**
           * 获取用户审核信息
           */
    static async getAuthDetail(options) {
        const url = `${this.baseUrl}/adm/user/getAuthDetail`
        return this.post(url, options)
    }
    /**
         * 后台直接写入用户角色认证信息
         */
    static async userAuth(options) {
        const url = `${this.baseUrl}/adm/user/userAuth`
        return this.post(url, options)
    }
}

